.class Lcom/TwinBlade/PicturePassword/a;
.super Landroid/content/BroadcastReceiver;
.source "SourceFile"


# instance fields
.field final synthetic a:Lcom/TwinBlade/PicturePassword/AService;


# direct methods
.method constructor <init>(Lcom/TwinBlade/PicturePassword/AService;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/TwinBlade/PicturePassword/a;->a:Lcom/TwinBlade/PicturePassword/AService;

    .line 137
    invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V

    return-void
.end method


# virtual methods
.method public onReceive(Landroid/content/Context;Landroid/content/Intent;)V
    .locals 8
    .parameter
    .parameter

    .prologue
    const/4 v2, 0x1

    const/4 v1, 0x0

    .line 140
    invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v0

    const-string v3, "android.intent.action.SCREEN_OFF"

    invoke-virtual {v0, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_5

    .line 141
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/a;->a:Lcom/TwinBlade/PicturePassword/AService;

    invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J

    move-result-wide v3

    invoke-static {v0, v3, v4}, Lcom/TwinBlade/PicturePassword/AService;->a(Lcom/TwinBlade/PicturePassword/AService;J)V

    .line 142
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/a;->a:Lcom/TwinBlade/PicturePassword/AService;

    invoke-static {v0, v2}, Lcom/TwinBlade/PicturePassword/AService;->a(Lcom/TwinBlade/PicturePassword/AService;Z)V

    .line 144
    invoke-static {}, Lcom/TwinBlade/PicturePassword/bl;->b()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 145
    invoke-static {}, Lcom/TwinBlade/PicturePassword/AService;->a()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0, v1}, Lcom/TwinBlade/PicturePassword/ak;->a(Landroid/content/Context;Z)Lcom/TwinBlade/PicturePassword/ak;

    move-result-object v0

    .line 146
    invoke-virtual {v0}, Lcom/TwinBlade/PicturePassword/ak;->a()V

    .line 147
    iput v1, v0, Lcom/TwinBlade/PicturePassword/ak;->a:I

    .line 148
    invoke-virtual {v0, v1}, Lcom/TwinBlade/PicturePassword/ak;->setMode(I)V

    .line 149
    invoke-virtual {v0}, Lcom/TwinBlade/PicturePassword/ak;->invalidate()V

    .line 151
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/a;->a:Lcom/TwinBlade/PicturePassword/AService;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/AService;->a(Lcom/TwinBlade/PicturePassword/AService;)Landroid/content/SharedPreferences;

    move-result-object v0

    const-string v3, "EasyWake"

    invoke-interface {v0, v3, v2}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v0

    if-nez v0, :cond_0

    .line 152
    invoke-static {}, Lcom/TwinBlade/PicturePassword/LockActivity;->a()V

    .line 156
    :cond_0
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/a;->a:Lcom/TwinBlade/PicturePassword/AService;

    const-string v3, "power"

    invoke-virtual {v0, v3}, Lcom/TwinBlade/PicturePassword/AService;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/os/PowerManager;

    .line 157
    iget-object v3, p0, Lcom/TwinBlade/PicturePassword/a;->a:Lcom/TwinBlade/PicturePassword/AService;

    invoke-static {v3}, Lcom/TwinBlade/PicturePassword/AService;->b(Lcom/TwinBlade/PicturePassword/AService;)Z

    move-result v3

    if-nez v3, :cond_1

    invoke-virtual {v0}, Landroid/os/PowerManager;->isScreenOn()Z

    move-result v0

    if-eqz v0, :cond_2

    .line 276
    :cond_1
    :goto_0
    return-void

    .line 162
    :cond_2
    invoke-static {p1}, Lcom/TwinBlade/PicturePassword/bd;->a(Landroid/content/Context;)Z

    move-result v0

    if-eqz v0, :cond_3

    .line 163
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/a;->a:Lcom/TwinBlade/PicturePassword/AService;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/AService;->a(Lcom/TwinBlade/PicturePassword/AService;)Landroid/content/SharedPreferences;

    move-result-object v0

    const-string v3, "LockDelayMinute"

    invoke-interface {v0, v3, v1}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I

    move-result v0

    .line 164
    iget-object v3, p0, Lcom/TwinBlade/PicturePassword/a;->a:Lcom/TwinBlade/PicturePassword/AService;

    invoke-static {v3}, Lcom/TwinBlade/PicturePassword/AService;->a(Lcom/TwinBlade/PicturePassword/AService;)Landroid/content/SharedPreferences;

    move-result-object v3

    const-string v4, "LockDelaySecond"

    invoke-interface {v3, v4, v1}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I

    move-result v1

    .line 165
    mul-int/lit8 v0, v0, 0x3c

    add-int/2addr v1, v0

    .line 168
    :cond_3
    if-nez v1, :cond_4

    .line 169
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/a;->a:Lcom/TwinBlade/PicturePassword/AService;

    const-string v1, "screen off"

    invoke-static {v0, v2, v1}, Lcom/TwinBlade/PicturePassword/AService;->a(Lcom/TwinBlade/PicturePassword/AService;ZLjava/lang/String;)V

    goto :goto_0

    .line 171
    :cond_4
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/a;->a:Lcom/TwinBlade/PicturePassword/AService;

    invoke-static {v0, v1}, Lcom/TwinBlade/PicturePassword/AService;->a(Lcom/TwinBlade/PicturePassword/AService;I)V

    goto :goto_0

    .line 173
    :cond_5
    invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v0

    const-string v3, "android.intent.action.SCREEN_ON"

    invoke-virtual {v0, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_12

    .line 174
    invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J

    move-result-wide v3

    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/a;->a:Lcom/TwinBlade/PicturePassword/AService;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/AService;->c(Lcom/TwinBlade/PicturePassword/AService;)J

    move-result-wide v5

    sub-long/2addr v3, v5

    .line 176
    invoke-static {p1}, Lcom/TwinBlade/PicturePassword/bd;->a(Landroid/content/Context;)Z

    move-result v0

    if-eqz v0, :cond_1d

    .line 177
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/a;->a:Lcom/TwinBlade/PicturePassword/AService;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/AService;->a(Lcom/TwinBlade/PicturePassword/AService;)Landroid/content/SharedPreferences;

    move-result-object v0

    const-string v5, "LockDelayMinute"

    invoke-interface {v0, v5, v1}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I

    move-result v0

    .line 178
    iget-object v5, p0, Lcom/TwinBlade/PicturePassword/a;->a:Lcom/TwinBlade/PicturePassword/AService;

    invoke-static {v5}, Lcom/TwinBlade/PicturePassword/AService;->a(Lcom/TwinBlade/PicturePassword/AService;)Landroid/content/SharedPreferences;

    move-result-object v5

    const-string v6, "LockDelaySecond"

    invoke-interface {v5, v6, v1}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I

    move-result v5

    .line 179
    mul-int/lit8 v0, v0, 0x3c

    add-int/2addr v0, v5

    .line 181
    :goto_1
    mul-int/lit16 v0, v0, 0x3e8

    .line 182
    new-instance v5, Ljava/lang/StringBuilder;

    const-string v6, "ElapsedTime: "

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-static {v3, v4}, Ljava/lang/Long;->toString(J)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-static {v5}, Lcom/TwinBlade/PicturePassword/Utilities;->a(Ljava/lang/String;)V

    .line 183
    new-instance v5, Ljava/lang/StringBuilder;

    const-string v6, "LockDelay: "

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-static {v0}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-static {v5}, Lcom/TwinBlade/PicturePassword/Utilities;->a(Ljava/lang/String;)V

    .line 184
    iget-object v5, p0, Lcom/TwinBlade/PicturePassword/a;->a:Lcom/TwinBlade/PicturePassword/AService;

    int-to-long v6, v0

    cmp-long v0, v3, v6

    if-lez v0, :cond_e

    move v0, v2

    :goto_2
    invoke-static {v5, v0}, Lcom/TwinBlade/PicturePassword/AService;->a(Lcom/TwinBlade/PicturePassword/AService;Z)V

    .line 185
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/a;->a:Lcom/TwinBlade/PicturePassword/AService;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/AService;->d(Lcom/TwinBlade/PicturePassword/AService;)Z

    move-result v0

    if-eqz v0, :cond_f

    const-string v0, "WidgetLocker Delayed Lock"

    :goto_3
    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/Utilities;->a(Ljava/lang/String;)V

    .line 187
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/a;->a:Lcom/TwinBlade/PicturePassword/AService;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/AService;->b(Lcom/TwinBlade/PicturePassword/AService;)Z

    move-result v0

    if-eqz v0, :cond_6

    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/a;->a:Lcom/TwinBlade/PicturePassword/AService;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/AService;->e(Lcom/TwinBlade/PicturePassword/AService;)Z

    move-result v0

    if-nez v0, :cond_6

    invoke-static {}, Lcom/TwinBlade/PicturePassword/bl;->a()Z

    move-result v0

    if-nez v0, :cond_6

    .line 188
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/a;->a:Lcom/TwinBlade/PicturePassword/AService;

    const-string v3, "screen on widgetlocker"

    invoke-static {v0, v2, v3}, Lcom/TwinBlade/PicturePassword/AService;->a(Lcom/TwinBlade/PicturePassword/AService;ZLjava/lang/String;)V

    .line 191
    :cond_6
    invoke-static {}, Lcom/TwinBlade/PicturePassword/bl;->b()Z

    move-result v0

    if-eqz v0, :cond_8

    .line 192
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/a;->a:Lcom/TwinBlade/PicturePassword/AService;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/AService;->a(Lcom/TwinBlade/PicturePassword/AService;)Landroid/content/SharedPreferences;

    move-result-object v0

    const-string v3, "InfoPanel"

    invoke-interface {v0, v3, v1}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v0

    if-eqz v0, :cond_7

    .line 193
    invoke-static {}, Lcom/TwinBlade/PicturePassword/AService;->a()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0, v1}, Lcom/TwinBlade/PicturePassword/bl;->a(Landroid/content/Context;Z)Lcom/TwinBlade/PicturePassword/bl;

    move-result-object v0

    .line 194
    invoke-virtual {v0}, Lcom/TwinBlade/PicturePassword/bl;->e()V

    .line 195
    invoke-virtual {v0}, Lcom/TwinBlade/PicturePassword/bl;->f()V

    .line 196
    invoke-virtual {v0, v1}, Lcom/TwinBlade/PicturePassword/bl;->a(Z)V

    .line 199
    :cond_7
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/a;->a:Lcom/TwinBlade/PicturePassword/AService;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/AService;->a(Lcom/TwinBlade/PicturePassword/AService;)Landroid/content/SharedPreferences;

    move-result-object v0

    const-string v3, "EasyWake"

    invoke-interface {v0, v3, v2}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v0

    if-nez v0, :cond_8

    .line 200
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/a;->a:Lcom/TwinBlade/PicturePassword/AService;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/AService;->a(Lcom/TwinBlade/PicturePassword/AService;)Landroid/content/SharedPreferences;

    move-result-object v0

    const-string v3, "DisplayStockLockscreen"

    invoke-interface {v0, v3, v1}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v0

    if-nez v0, :cond_8

    .line 201
    invoke-static {}, Lcom/TwinBlade/PicturePassword/LockActivity;->b()V

    .line 205
    :cond_8
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/a;->a:Lcom/TwinBlade/PicturePassword/AService;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/AService;->f(Lcom/TwinBlade/PicturePassword/AService;)Landroid/app/AlarmManager;

    move-result-object v0

    if-eqz v0, :cond_9

    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/a;->a:Lcom/TwinBlade/PicturePassword/AService;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/AService;->g(Lcom/TwinBlade/PicturePassword/AService;)Landroid/app/PendingIntent;

    move-result-object v0

    if-eqz v0, :cond_9

    .line 206
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/a;->a:Lcom/TwinBlade/PicturePassword/AService;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/AService;->f(Lcom/TwinBlade/PicturePassword/AService;)Landroid/app/AlarmManager;

    move-result-object v0

    iget-object v3, p0, Lcom/TwinBlade/PicturePassword/a;->a:Lcom/TwinBlade/PicturePassword/AService;

    invoke-static {v3}, Lcom/TwinBlade/PicturePassword/AService;->g(Lcom/TwinBlade/PicturePassword/AService;)Landroid/app/PendingIntent;

    move-result-object v3

    invoke-virtual {v0, v3}, Landroid/app/AlarmManager;->cancel(Landroid/app/PendingIntent;)V

    .line 209
    :cond_9
    invoke-static {}, Lcom/TwinBlade/PicturePassword/bl;->a()Z

    move-result v0

    if-nez v0, :cond_d

    .line 210
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/a;->a:Lcom/TwinBlade/PicturePassword/AService;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/AService;->h(Lcom/TwinBlade/PicturePassword/AService;)Z

    move-result v0

    if-nez v0, :cond_d

    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/a;->a:Lcom/TwinBlade/PicturePassword/AService;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/AService;->b(Lcom/TwinBlade/PicturePassword/AService;)Z

    move-result v0

    if-nez v0, :cond_d

    .line 211
    invoke-static {}, Lcom/TwinBlade/PicturePassword/bl;->b()Z

    move-result v0

    if-nez v0, :cond_a

    .line 212
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/a;->a:Lcom/TwinBlade/PicturePassword/AService;

    const-string v3, "screen on lock not shown"

    invoke-static {v0, v2, v3}, Lcom/TwinBlade/PicturePassword/AService;->a(Lcom/TwinBlade/PicturePassword/AService;ZLjava/lang/String;)V

    .line 215
    :cond_a
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/a;->a:Lcom/TwinBlade/PicturePassword/AService;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/AService;->a(Lcom/TwinBlade/PicturePassword/AService;)Landroid/content/SharedPreferences;

    move-result-object v0

    const-string v2, "ForceOrientation"

    const-string v3, "0"

    invoke-interface {v0, v2, v3}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 216
    const-string v2, "0"

    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_10

    .line 217
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/a;->a:Lcom/TwinBlade/PicturePassword/AService;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/AService;->i(Lcom/TwinBlade/PicturePassword/AService;)Z

    move-result v0

    if-nez v0, :cond_b

    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/a;->a:Lcom/TwinBlade/PicturePassword/AService;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/AService;->j(Lcom/TwinBlade/PicturePassword/AService;)Z

    move-result v0

    if-nez v0, :cond_c

    :cond_b
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/a;->a:Lcom/TwinBlade/PicturePassword/AService;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/AService;->i(Lcom/TwinBlade/PicturePassword/AService;)Z

    move-result v0

    if-eqz v0, :cond_d

    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/a;->a:Lcom/TwinBlade/PicturePassword/AService;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/AService;->j(Lcom/TwinBlade/PicturePassword/AService;)Z

    move-result v0

    if-nez v0, :cond_d

    .line 218
    :cond_c
    invoke-static {}, Lcom/TwinBlade/PicturePassword/Utilities;->b()V

    .line 232
    :cond_d
    :goto_4
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/a;->a:Lcom/TwinBlade/PicturePassword/AService;

    invoke-static {v0, v1}, Lcom/TwinBlade/PicturePassword/AService;->b(Lcom/TwinBlade/PicturePassword/AService;Z)V

    goto/16 :goto_0

    :cond_e
    move v0, v1

    .line 184
    goto/16 :goto_2

    .line 185
    :cond_f
    const-string v0, "WidgetLocker No Lock"

    goto/16 :goto_3

    .line 220
    :cond_10
    const-string v2, "1"

    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_11

    .line 221
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/a;->a:Lcom/TwinBlade/PicturePassword/AService;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/AService;->j(Lcom/TwinBlade/PicturePassword/AService;)Z

    move-result v0

    if-eqz v0, :cond_d

    .line 222
    invoke-static {}, Lcom/TwinBlade/PicturePassword/Utilities;->b()V

    goto :goto_4

    .line 224
    :cond_11
    const-string v2, "2"

    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_d

    .line 225
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/a;->a:Lcom/TwinBlade/PicturePassword/AService;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/AService;->j(Lcom/TwinBlade/PicturePassword/AService;)Z

    move-result v0

    if-nez v0, :cond_d

    .line 226
    invoke-static {}, Lcom/TwinBlade/PicturePassword/Utilities;->b()V

    goto :goto_4

    .line 233
    :cond_12
    invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v0

    const-string v3, "com.android.deskclock.ALARM_ALERT"

    invoke-virtual {v0, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_13

    .line 234
    sput-boolean v2, Lcom/TwinBlade/PicturePassword/bl;->a:Z

    .line 235
    invoke-static {}, Lcom/TwinBlade/PicturePassword/bl;->b()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 236
    invoke-static {}, Lcom/TwinBlade/PicturePassword/AService;->a()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0, v1}, Lcom/TwinBlade/PicturePassword/bl;->a(Landroid/content/Context;Z)Lcom/TwinBlade/PicturePassword/bl;

    move-result-object v0

    invoke-virtual {v0, v1}, Lcom/TwinBlade/PicturePassword/bl;->f(Z)V

    goto/16 :goto_0

    .line 238
    :cond_13
    invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v0

    const-string v3, "com.android.deskclock.ALARM_DONE"

    invoke-virtual {v0, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_14

    .line 239
    sput-boolean v1, Lcom/TwinBlade/PicturePassword/bl;->a:Z

    .line 240
    invoke-static {}, Lcom/TwinBlade/PicturePassword/bl;->b()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 241
    invoke-static {}, Lcom/TwinBlade/PicturePassword/AService;->a()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0, v1}, Lcom/TwinBlade/PicturePassword/bl;->a(Landroid/content/Context;Z)Lcom/TwinBlade/PicturePassword/bl;

    move-result-object v0

    invoke-virtual {v0, v1}, Lcom/TwinBlade/PicturePassword/bl;->e(Z)V

    goto/16 :goto_0

    .line 243
    :cond_14
    invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v0

    const-string v3, "android.intent.action.CAMERA_BUTTON"

    invoke-virtual {v0, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_15

    .line 244
    const-string v0, "android.intent.extra.KEY_EVENT"

    invoke-virtual {p2, v0}, Landroid/content/Intent;->getParcelableExtra(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v0

    check-cast v0, Landroid/view/KeyEvent;

    .line 245
    invoke-virtual {v0}, Landroid/view/KeyEvent;->getAction()I

    move-result v0

    if-nez v0, :cond_1

    invoke-static {}, Lcom/TwinBlade/PicturePassword/bl;->b()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 246
    sput-boolean v2, Lcom/TwinBlade/PicturePassword/bl;->b:Z

    .line 247
    invoke-static {}, Lcom/TwinBlade/PicturePassword/AService;->a()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0, v1}, Lcom/TwinBlade/PicturePassword/bl;->a(Landroid/content/Context;Z)Lcom/TwinBlade/PicturePassword/bl;

    move-result-object v0

    invoke-virtual {v0, v1}, Lcom/TwinBlade/PicturePassword/bl;->f(Z)V

    goto/16 :goto_0

    .line 249
    :cond_15
    invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v0

    const-string v3, "StartLockscreenDelayed"

    invoke-virtual {v0, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_17

    .line 250
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/a;->a:Lcom/TwinBlade/PicturePassword/AService;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/AService;->k(Lcom/TwinBlade/PicturePassword/AService;)Landroid/app/KeyguardManager$KeyguardLock;

    move-result-object v0

    if-eqz v0, :cond_16

    .line 251
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/a;->a:Lcom/TwinBlade/PicturePassword/AService;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/AService;->k(Lcom/TwinBlade/PicturePassword/AService;)Landroid/app/KeyguardManager$KeyguardLock;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/KeyguardManager$KeyguardLock;->reenableKeyguard()V

    .line 252
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/a;->a:Lcom/TwinBlade/PicturePassword/AService;

    const/4 v1, 0x0

    invoke-static {v0, v1}, Lcom/TwinBlade/PicturePassword/AService;->a(Lcom/TwinBlade/PicturePassword/AService;Landroid/app/KeyguardManager$KeyguardLock;)V

    .line 255
    :cond_16
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/a;->a:Lcom/TwinBlade/PicturePassword/AService;

    const-string v1, "delayed start"

    invoke-static {v0, v2, v1}, Lcom/TwinBlade/PicturePassword/AService;->a(Lcom/TwinBlade/PicturePassword/AService;ZLjava/lang/String;)V

    goto/16 :goto_0

    .line 256
    :cond_17
    invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v0

    const-string v3, "com.teslacoilsw.widgetlocker.intent.LOCKED"

    invoke-virtual {v0, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_19

    .line 257
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/a;->a:Lcom/TwinBlade/PicturePassword/AService;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/AService;->b(Lcom/TwinBlade/PicturePassword/AService;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 258
    invoke-static {}, Lcom/TwinBlade/PicturePassword/bl;->b()Z

    move-result v0

    if-eqz v0, :cond_18

    .line 260
    :try_start_0
    invoke-static {}, Lcom/TwinBlade/PicturePassword/AService;->a()Landroid/content/Context;

    move-result-object v0

    const/4 v1, 0x0

    invoke-static {v0, v1}, Lcom/TwinBlade/PicturePassword/bl;->a(Landroid/content/Context;Z)Lcom/TwinBlade/PicturePassword/bl;

    move-result-object v0

    invoke-virtual {v0}, Lcom/TwinBlade/PicturePassword/bl;->c()V

    .line 261
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/a;->a:Lcom/TwinBlade/PicturePassword/AService;

    const/4 v1, 0x1

    invoke-static {v0, v1}, Lcom/TwinBlade/PicturePassword/AService;->c(Lcom/TwinBlade/PicturePassword/AService;Z)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 266
    :cond_18
    :goto_5
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/a;->a:Lcom/TwinBlade/PicturePassword/AService;

    invoke-static {v0, v2}, Lcom/TwinBlade/PicturePassword/AService;->d(Lcom/TwinBlade/PicturePassword/AService;Z)V

    goto/16 :goto_0

    .line 268
    :cond_19
    invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v0

    const-string v3, "com.teslacoilsw.widgetlocker.intent.UNLOCKED"

    invoke-virtual {v0, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_1a

    invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v0

    const-string v3, "com.teslacoilsw.widgetlocker.intent.HIDDEN"

    invoke-virtual {v0, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 269
    :cond_1a
    new-instance v0, Ljava/lang/StringBuilder;

    const-string v3, "WidgetLocker Unlock/Hide "

    invoke-direct {v0, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v3, p0, Lcom/TwinBlade/PicturePassword/a;->a:Lcom/TwinBlade/PicturePassword/AService;

    invoke-static {v3}, Lcom/TwinBlade/PicturePassword/AService;->b(Lcom/TwinBlade/PicturePassword/AService;)Z

    move-result v3

    invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v3, p0, Lcom/TwinBlade/PicturePassword/a;->a:Lcom/TwinBlade/PicturePassword/AService;

    invoke-static {v3}, Lcom/TwinBlade/PicturePassword/AService;->e(Lcom/TwinBlade/PicturePassword/AService;)Z

    move-result v3

    invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v3, p0, Lcom/TwinBlade/PicturePassword/a;->a:Lcom/TwinBlade/PicturePassword/AService;

    invoke-static {v3}, Lcom/TwinBlade/PicturePassword/AService;->d(Lcom/TwinBlade/PicturePassword/AService;)Z

    move-result v3

    invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/Utilities;->a(Ljava/lang/String;)V

    .line 270
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/a;->a:Lcom/TwinBlade/PicturePassword/AService;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/AService;->b(Lcom/TwinBlade/PicturePassword/AService;)Z

    move-result v0

    if-eqz v0, :cond_1c

    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/a;->a:Lcom/TwinBlade/PicturePassword/AService;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/AService;->e(Lcom/TwinBlade/PicturePassword/AService;)Z

    move-result v0

    if-eqz v0, :cond_1c

    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/a;->a:Lcom/TwinBlade/PicturePassword/AService;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/AService;->d(Lcom/TwinBlade/PicturePassword/AService;)Z

    move-result v0

    if-nez v0, :cond_1b

    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/a;->a:Lcom/TwinBlade/PicturePassword/AService;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/AService;->l(Lcom/TwinBlade/PicturePassword/AService;)Z

    move-result v0

    if-eqz v0, :cond_1c

    .line 271
    :cond_1b
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/a;->a:Lcom/TwinBlade/PicturePassword/AService;

    const-string v3, "widgetlocker"

    invoke-static {v0, v2, v3}, Lcom/TwinBlade/PicturePassword/AService;->a(Lcom/TwinBlade/PicturePassword/AService;ZLjava/lang/String;)V

    .line 272
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/a;->a:Lcom/TwinBlade/PicturePassword/AService;

    invoke-static {v0, v1}, Lcom/TwinBlade/PicturePassword/AService;->d(Lcom/TwinBlade/PicturePassword/AService;Z)V

    .line 274
    :cond_1c
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/a;->a:Lcom/TwinBlade/PicturePassword/AService;

    invoke-static {v0, v1}, Lcom/TwinBlade/PicturePassword/AService;->c(Lcom/TwinBlade/PicturePassword/AService;Z)V

    goto/16 :goto_0

    .line 262
    :catch_0
    move-exception v0

    goto :goto_5

    :cond_1d
    move v0, v1

    goto/16 :goto_1
.end method
